package com.interviewbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.interviewbackend.entity.SubQuestionFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SubQuestionFileMapper extends BaseMapper<SubQuestionFile> {

    /**
     * 根据 interviewId 查询 SubQuestionFile
     * @param interviewId 面试会话ID
     * @return 对应的 SubQuestionFile
     */
    @Select("SELECT * FROM sub_question_file WHERE interview_id = #{interviewId}")
    SubQuestionFile selectByInterviewId(Long interviewId);
}
